// stores/user.js
import {
	defineStore
} from 'pinia';
import {
	ref
} from 'vue'
export const useUserStore = defineStore('user', () => {
	const userInf = ref({
		username: '',
		avatarUrl: ''
	});
	const isAnyClubTeacher = ref()
	const clubInf = ref([])
	const token = ref('')
	return {
		userInf,
		isAnyClubTeacher,
		token,
		clubInf
	};
}, {
	persist: {
		storage: {
			getItem(key) {
				return uni.getStorageSync(key)
			},
			setItem(key, val) {
				uni.setStorageSync(key, val)
			}
		}
	}
});